from coin.exchange.base.kr_rest.product_info import (
    ProductInfo, ProductHolder, ProductInfoConstant)
from coin.exchange.base.kr_rest.product_info import ProductInfo, ProductHolder
from coin.exchange.lmax_digital.kr_rest.constants import pi_file


lmaxdigital_product_info = ProductInfoConstant(pi_file)


def get_holder_from_product(product):
  product_info = lmaxdigital_product_info.get_product_info(product.relative_norm)
  return ProductHolder(product, product_info)
